package com.lbj.mall.auth.feign;

import com.lbj.mall.auth.entity.vo.UserLoginVo;
import com.lbj.mall.auth.entity.vo.UserRegisterVo;
import com.lbj.mall.common.entity.vo.GiteeVo;
import com.lbj.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("mall-member")
public interface MemberFeign {

    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo registerVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo loginVo);

    @PostMapping("/member/member/gitee")
    R giteeLogin(@RequestBody GiteeVo giteeVo);
}
